package manager.search.vo;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
@Document(indexName = "goods", type = "spu", shards = 1, replicas = 0, refreshInterval = "-1")
@Data
public class SpuEsVO implements Serializable {
    @Field(type = FieldType.Keyword)
    private String id;
    @Field(type = FieldType.Text , analyzer = "ik_max_word")
    private String title;
    @Field(type = FieldType.Text , analyzer = "ik_max_word")
    private String subTitle;
    @Field(type = FieldType.Text)
    private String brandId;
    @Field(type = FieldType.Text)
    private String brandName;
    @Field(type = FieldType.Boolean)
    private Boolean saleable;
    @Field(type = FieldType.Boolean)
    private Boolean valid;
    private Map<String,Object> specifications;
    private Map<String,Object> categoryInfo;
    private List<Map<String,Object>> skus;
    @Field(type = FieldType.Boolean)
    private Boolean recommond;
    @Field(type = FieldType.Text)
    private String categoryId;
}
